NDepend.API Documentation
StartsWithAny(String,String,String,String,String,String,String[]) Method
NDepend.Helpers Namespace > ExtensionMethodsString Class > StartsWithAny Method : StartsWithAny(String,String,String,String,String,String,String[]) Method
This string.
One of the possible start string for thisString.
One of the possible start string for thisString.
One of the possible start string for thisString.
One of the possible start string for thisString.
One of the possible start string for thisString.
An array containing possible start strings for thisString.
Gets a value indicating whether this string starts with case sensitive any of the strings specified.
Syntax
[Extension()]
public static bool StartsWithAny( 
   string thisString,
   string str0,
   string str1,
   string str2,
   string str3,
   string str4,
   params string[] array
)

Parameters

thisString
This string.
str0
One of the possible start string for thisString.
str1
One of the possible start string for thisString.
str2
One of the possible start string for thisString.
str3
One of the possible start string for thisString.
str4
One of the possible start string for thisString.
array
An array containing possible start strings for thisString.
Exceptions
ExceptionDescription
null string reference in array not accepted.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsString Class
ExtensionMethodsString Members
Overload List